<div class="tableData">
	<table>
    	<thead>
        	<tr>
				<th class="arrow-space"></th>
				<th align=left>Date</th>
				<th align=left>Invoice No</th>
				<th align=left>Customer</th>
				<th align=left>Shipping Notes</th>
				<th></th>
			</tr>
		</thead>
	<?php 
		foreach( array_reverse($invoiceHeaders)  as $invoiceHeader) 
			{
				
			echo '<tr>';
			echo '<td class="arrow-space"></th>';
			echo '<td>' . $invoiceHeader['InvoiceHeader']['entry_date'] . '</td>';
			echo '<td>' . $invoiceHeader['InvoiceHeader']['invoice_no'] . '</td>';
			echo '<td>' . $invoiceHeader['Customer']['name'] . '</td>';
			echo '<td>' . $invoiceHeader['InvoiceHeader']['shipping_notes'] . '</td>';
			echo '<td>';
			echo $this->Html->link("<i class='icon-pen-note'></i>", 
									array(
										'controller' => 'invoice_headers', 
										'action' => 'edit',
										$invoiceHeader['InvoiceHeader']['id']
										),
									array(
										'class' => 'btn formToggle', 
										'title' => 'Edit Data',
										'escape' => FALSE
										)
									);
			echo '&nbsp;';
			echo $this->Html->link("<i class='icon-x'></i>", 
									array(
										'controller' => 'invoice_headers', 
										'action' => 'delete',
										$invoiceHeader['InvoiceHeader']['id']
										),
									array(
										'class' => 'btn', 
										'title' => 'Delete',
										'escape' => FALSE
										)
									);
			echo '</td>';
			echo '</tr>';
			
			} ?>	
	</table>
</div> 